package com.atguigu.spzx.manager;

import com.atguigu.spzx.common.log.annotation.EnableLogAspect;
import com.atguigu.spzx.manager.properties.MinioProperties;
import com.atguigu.spzx.manager.properties.UserProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 作者:hfj
 * 功能:
 * 日期: 2024/3/21 21:02
 */
@EnableLogAspect //加上扫描注解类
@SpringBootApplication
@ComponentScan(basePackages = "com.atguigu.spzx") //扫描其他子包
@EnableConfigurationProperties(value = {UserProperties.class, MinioProperties.class})
@EnableScheduling //开启定时任务功能
public class ManagerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ManagerApplication.class,args);
    }
}
